﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Autenticacao
{
    public partial class frm_agenda : Form
    {
        public Utilizador util3;
        public string Data;


        public frm_agenda(Utilizador util2)
        {
            this.util3 = util2;
            InitializeComponent();
        }

        private void cmdagenda_cdia_Click(object sender, EventArgs e)
        {
            Data = mtc_mes.SelectionStart.ToString();
            //MessageBox.Show(Data);
            frm_agendadet frm1 = new frm_agendadet(util3, null, null, null, "consultar", Data, null, null);
            this.Hide();
            frm1.ShowDialog();
        }

        private void frm_agenda_Load(object sender, EventArgs e)
        {

        }

        private void cmdagenda_aentrada_Click(object sender, EventArgs e)
        {
            Data = mtc_mes.SelectionStart.ToString();
            //MessageBox.Show(Data);
            frm_agendadet frm2 = new frm_agendadet(util3, null, null, null, "inserir", Data, null, null);
            this.Hide();
            frm2.ShowDialog();
        }

        private void cmdagenda_sair_Click(object sender, EventArgs e)
        {
            frm_gesclinica frm3 = new frm_gesclinica(util3);
            this.Hide();
            frm3.ShowDialog();
        }
    }
}
